package com.mvc.web.common.ibatis;


public class IbatisDaoImpl extends IbatisDao{

	public Object queryForObject(String statementName){
		return this.getSqlMapClientTemplate().queryForObject(statementName);
	}
	
	public Object queryForObject(String statementName,Object obj){
		return this.getSqlMapClientTemplate().queryForObject(statementName,obj);
	}
	
	public Object queryForList(String statementName){
		return this.getSqlMapClientTemplate().queryForList(statementName);
	}
	
	public Object queryForList(String statementName,Object obj){
		return this.getSqlMapClientTemplate().queryForList(statementName,obj);
	}
	
	public void insert(String statementName){
		this.getSqlMapClientTemplate().insert(statementName);
	}
	
	public void insert(String statementName,Object obj){
		this.getSqlMapClientTemplate().insert(statementName,obj);
	}
	
	public int insertBackId(String statementName,Object obj){
		return  (Integer) this.getSqlMapClientTemplate().insert(statementName,obj);
	}
	
	public void update(String statementName){
		this.getSqlMapClientTemplate().update(statementName);
	}
	
	public void update(String statementName,Object obj){
		this.getSqlMapClientTemplate().update(statementName,obj);
	}
	
	public void delete(String statementName){
		this.getSqlMapClientTemplate().delete(statementName);
	}
	
	public void delete(String statementName,Object obj){
		this.getSqlMapClientTemplate().delete(statementName,obj);
	}
	
}
